#include "AppWindow.h"

#include "core/AppContext.h"

AppWindow& appWindow = AppWindow::get();

AppWindow::AppWindow() {}

AppWindow& AppWindow::init(QMainWindow* mainWindow)
{
    appWindow.setMainWindow(mainWindow);
    return appWindow;
}

void AppWindow::info(const QString& message)
{
    QMessageBox::information(
        appWindow.mainWindow(), AppContext::ProductName(), message
    );
}
